body {
    font-family: Arial, sans-serif;
    background: linear-gradient(200deg,#e3c5eb,#a9c1ed);
}

h1, h2 {
    text-align: center;
    color: #2f4f4f;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 10px;
    text-align: left;
    position: relative;
}

tr {
    transition: transform 0.3s;
}

tr:hover {
    transform: translateY(-5px);
}

th {
    background-color: #f2f2f2;
}

/* 添加伪元素 */
td::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1; /* 将伪元素置于单元格的下方 */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    opacity: 0; /* 初始状态下伪元素透明度为0 */
    transition: opacity 0.3s;
}

/* 鼠标悬停时改变伪元素的透明度 */
tr:hover td::before {
    opacity: 1;
}


form {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

label {
    font-weight: bold;
    margin-bottom: 10px;
    color: #2f4f4f;
}

input[type="text"], input[type="date"] {
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    margin-bottom: 10px;
    background-color: #f5f5f5;
}

input[type="submit"] {
    background: linear-gradient(-200deg,#fac0e7,#aac2ee);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

input[type="submit"]:hover {
    background: linear-gradient(-200deg,#aac2ee,#fac0e7);
}